package com.meritzfire.framework.mframe.common.exception;

import java.util.*;

public class MframeRuntimeException extends RuntimeException {

	private static final long serialVersionUID = -4901472575266946837L;

	protected String legacyErrorCode = "";  
	
	protected String legacyErrorMessage = "";
	
	protected String errorCode = "";
	
	protected String errorMessage = "";

	protected String errorReason = "";
	
	protected String userErrorMessage = "";
	
	public MframeRuntimeException(){
		super();
	}
	public MframeRuntimeException(String message){
		super(message);
	}
	
	public MframeRuntimeException(String message,
	                 Throwable cause){
		super(message,cause);
	}

	public MframeRuntimeException(Throwable cause){
		super(cause);
	}
	/**
	 * @return the legacyErrorCode
	 */
	public String getLegacyErrorCode() {
		return legacyErrorCode;
	}
	/**
	 * @param legacyErrorCode the legacyErrorCode to set
	 */
	public void setLegacyErrorCode(String legacyErrorCode) {
		this.legacyErrorCode = legacyErrorCode;
	}
	/**
	 * @return the legacyErrorMessage
	 */
	public String getLegacyErrorMessage() {
		return legacyErrorMessage;
	}
	/**
	 * @param legacyErrorMessage the legacyErrorMessage to set
	 */
	public void setLegacyErrorMessage(String legacyErrorMessage) {
		this.legacyErrorMessage = legacyErrorMessage;
	}
	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}
	/**
	 * @param errorCode the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	/**
	 * @return the errorReason
	 */
	public String getErrorReason() {
		return errorReason;
	}
	/**
	 * @param errorReason the errorReason to set
	 */
	public void setErrorReason(String errorReason) {
		this.errorReason = errorReason;
	}
	/**
	 * @return the userErrorMessage
	 */
	public String getUserErrorMessage() {
		return userErrorMessage;
	}
	/**
	 * @param userErrorMessage the userErrorMessage to set
	 */
	public void setUserErrorMessage(String userErrorMessage) {
		this.userErrorMessage = userErrorMessage;
	}
	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}
	/**
	 * @param errorMessage the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
